# Copyright 2012 Sergio, Raul, Dorival. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

SET(EIGEN3_INCLUDE_SEARCH_PATH
  /usr/include/eigen3
  /usr/local/include/eigen3)

FIND_PATH(EIGEN3_EIGEN3_H Eigen/Core ${EIGEN3_INCLUDE_SEARCH_PATH})

SET(EIGEN3_FOUND 1)
FOREACH(var EIGEN3_EIGEN3_H)
  IF(NOT ${var})
    MESSAGE("Error: this library needs eigen3")
  ENDIF(NOT ${var})
ENDFOREACH(var)

IF(EIGEN3_FOUND)
    SET(EIGEN3_INCLUDE_DIRS ${EIGEN3_EIGEN3_H})
ENDIF(EIGEN3_FOUND)
